home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / HIEmbeddingPanels.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  28KB  |  657 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: HIEmbeddingPanels.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emith.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_HIEmbeddingPanel_h
  11. #define SOM_HIEmbeddingPanel_h
  12.  
  13.  
  14. /*
  15.  * Passthru lines: File: "C.h", "before"
  16.  */
  17. #include <HIEmbeddingPanelTypes.h>
  18.  
  19. #include <som.h>
  20.  
  21. /*
  22.  * -- This emitter treats Method Tokens as Thunks by default.
  23.  * -- Use the sc modifier "nothunks" to change this default
  24.  */
  25. #undef somresolve_
  26. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  27.  
  28. /*
  29.  * Define the class name as an object type
  30.  */
  31. #ifndef HIEmbeddingPanel
  32. #define HIEmbeddingPanel SOMObject
  33. #endif
  34. #include <HIPanels.h>
  35.  
  36. /*
  37.  * Start of user-defined types:
  38.  */
  39. #ifndef SOMClass
  40.     #define SOMClass SOMObject
  41. #endif /* SOMClass */
  42. #ifndef SOMObject
  43.     #define SOMObject SOMObject
  44. #endif /* SOMObject */
  45. #ifndef HIWindow
  46.     #define HIWindow SOMObject
  47. #endif /* HIWindow */
  48. #ifndef HIEmbeddingPanel
  49.     #define HIEmbeddingPanel SOMObject
  50. #endif /* HIEmbeddingPanel */
  51.  
  52. /*
  53.  * End of user-defined types.
  54.  */
  55.  
  56. #define HIEmbeddingPanel_MajorVersion 0
  57. #define HIEmbeddingPanel_MinorVersion 0
  58.  
  59. /*
  60.  * External name shortening if required
  61.  */
  62. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  63. #define HIEmbeddingPanelClassData d
  64. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  65. /*--------------Migration------------*/
  66.  
  67. #ifdef OLDIBMSOMAPISUPPORT
  68. #define HIEmbeddingPanel_classObj somNewClassReference(HIEmbeddingPanel)
  69. #define _HIEmbeddingPanel HIEmbeddingPanel_classObj
  70. #define HIEmbeddingPanelCClassData HIEmbeddingPanelClassData
  71. #define HIEmbeddingPanelNewClass(major,minor) somNewVersionedClassReference(HIEmbeddingPanel,major,minor)
  72. #endif
  73.  
  74. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  75. #define HIEmbeddingPanelMetaClass SOMClass
  76.  
  77. #if PRAGMA_ALIGN_SUPPORTED
  78. #  pragma options align=power
  79. #endif
  80.  
  81. /*
  82.  * Declare the class data structure
  83.  */
  84. SOMEXTERN struct HIEmbeddingPanelClassDataStructure {
  85. #ifdef OLDIBMSOMAPISUPPORT
  86.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  87. #else
  88.     long zero;
  89. #endif
  90.     somStaticClassInfo *sci;
  91.     somDToken        instanceDataToken;
  92.     long reserved [3];
  93.     somMToken GetSubPanelCount;
  94.     somMToken GetUserInputFocusSubPanel;
  95.     somMToken GetLastSelectedSubPanel;
  96.     somMToken InitEmbeddingPanel;
  97.     somMToken AddSubPanel;
  98.     somMToken RemoveSubPanel;
  99.     somMToken GetSubPanel;
  100.     somMToken SetUserInputFocusSubPanel;
  101.     somMToken GetSubPanelIndex;
  102.     somMToken GetSubPanelsFromRefLabel;
  103. } SOMDLINK HIEmbeddingPanelClassData;
  104.  
  105. #if PRAGMA_ALIGN_SUPPORTED
  106. #  pragma options align=reset
  107. #endif
  108.  
  109. #if !defined(HIEmbeddingPanel_Class_Source) && !defined(SOM_Module_hiembeddingpanels_Source)
  110. #if PRAGMA_IMPORT_SUPPORTED
  111. #pragma import list HIEmbeddingPanelClassData
  112. #endif
  113. #endif
  114.  
  115.  
  116. /*
  117.  * New macro for HIEmbeddingPanel
  118.  */
  119. #define HIEmbeddingPanelNew() somNewObject(HIEmbeddingPanel)
  120.  
  121. /*
  122.  * New Method: GetSubPanelCount
  123.  */
  124. typedef ItemCount   (SOMLINK *somTD_HIEmbeddingPanel_GetSubPanelCount)(HIEmbeddingPanel *somSelf, Environment *ev);
  125. #define somMD_HIEmbeddingPanel_GetSubPanelCount "::HIEmbeddingPanel::GetSubPanelCount"
  126. #define HIEmbeddingPanel_GetSubPanelCount(somSelf,ev) \
  127.     (SOM_Resolve(somSelf, HIEmbeddingPanel, GetSubPanelCount) \
  128.     (somSelf,ev))
  129. #ifndef SOMGD_GetSubPanelCount
  130.     #if defined _GetSubPanelCount || defined __GetSubPanelCount
  131.         #undef _GetSubPanelCount
  132.         #undef __GetSubPanelCount
  133.         #define SOMGD_GetSubPanelCount 1
  134.     #else
  135.         #define _GetSubPanelCount HIEmbeddingPanel_GetSubPanelCount
  136.     #endif /* _GetSubPanelCount */
  137. #endif /* SOMGD_GetSubPanelCount */
  138.  
  139. /*
  140.  * New Method: GetLastSelectedSubPanel
  141.  */
  142. typedef HIPanel*   (SOMLINK *somTD_HIEmbeddingPanel_GetLastSelectedSubPanel)(HIEmbeddingPanel *somSelf, Environment *ev);
  143. #define somMD_HIEmbeddingPanel_GetLastSelectedSubPanel "::HIEmbeddingPanel::GetLastSelectedSubPanel"
  144. #define HIEmbeddingPanel_GetLastSelectedSubPanel(somSelf,ev) \
  145.     (SOM_Resolve(somSelf, HIEmbeddingPanel, GetLastSelectedSubPanel) \
  146.     (somSelf,ev))
  147. #ifndef SOMGD_GetLastSelectedSubPanel
  148.     #if defined _GetLastSelectedSubPanel || defined __GetLastSelectedSubPanel
  149.         #undef _GetLastSelectedSubPanel
  150.         #undef __GetLastSelectedSubPanel
  151.         #define SOMGD_GetLastSelectedSubPanel 1
  152.     #else
  153.         #define _GetLastSelectedSubPanel HIEmbeddingPanel_GetLastSelectedSubPanel
  154.     #endif /* _GetLastSelectedSubPanel */
  155. #endif /* SOMGD_GetLastSelectedSubPanel */
  156.  
  157. /*
  158.  * New Method: InitEmbeddingPanel
  159.  */
  160. typedef OSStatus   (SOMLINK *somTD_HIEmbeddingPanel_InitEmbeddingPanel)(HIEmbeddingPanel *somSelf, Environment *ev,
  161.         RefLabel* identifier,
  162.         HIWindow* window,
  163.         Rect* bounds);
  164. #define somMD_HIEmbeddingPanel_InitEmbeddingPanel "::HIEmbeddingPanel::InitEmbeddingPanel"
  165. #define HIEmbeddingPanel_InitEmbeddingPanel(somSelf,ev,identifier,window,bounds) \
  166.     (SOM_Resolve(somSelf, HIEmbeddingPanel, InitEmbeddingPanel) \
  167.     (somSelf,ev,identifier,window,bounds))
  168. #ifndef SOMGD_InitEmbeddingPanel
  169.     #if defined _InitEmbeddingPanel || defined __InitEmbeddingPanel
  170.         #undef _InitEmbeddingPanel
  171.         #undef __InitEmbeddingPanel
  172.         #define SOMGD_InitEmbeddingPanel 1
  173.     #else
  174.         #define _InitEmbeddingPanel HIEmbeddingPanel_InitEmbeddingPanel
  175.     #endif /* _InitEmbeddingPanel */
  176. #endif /* SOMGD_InitEmbeddingPanel */
  177.  
  178. /*
  179.  * New Method: AddSubPanel
  180.  */
  181. typedef OSStatus   (SOMLINK *somTD_HIEmbeddingPanel_AddSubPanel)(HIEmbeddingPanel *somSelf, Environment *ev,
  182.         HIPanel* subPanel,
  183.         HISubPanelIndex where,
  184.         HIAdoptionFlags adoptionFlags,
  185.         HIFrameBindingFlags frameBindingFlags);
  186. #define somMD_HIEmbeddingPanel_AddSubPanel "::HIEmbeddingPanel::AddSubPanel"
  187. #define HIEmbeddingPanel_AddSubPanel(somSelf,ev,subPanel,where,adoptionFlags,frameBindingFlags) \
  188.     (SOM_Resolve(somSelf, HIEmbeddingPanel, AddSubPanel) \
  189.     (somSelf,ev,subPanel,where,adoptionFlags,frameBindingFlags))
  190. #ifndef SOMGD_AddSubPanel
  191.     #if defined _AddSubPanel || defined __AddSubPanel
  192.         #undef _AddSubPanel
  193.         #undef __AddSubPanel
  194.         #define SOMGD_AddSubPanel 1
  195.     #else
  196.         #define _AddSubPanel HIEmbeddingPanel_AddSubPanel
  197.     #endif /* _AddSubPanel */
  198. #endif /* SOMGD_AddSubPanel */
  199.  
  200. /*
  201.  * New Method: RemoveSubPanel
  202.  */
  203. typedef OSStatus   (SOMLINK *somTD_HIEmbeddingPanel_RemoveSubPanel)(HIEmbeddingPanel *somSelf, Environment *ev,
  204.         HIPanel* subPanel);
  205. #define somMD_HIEmbeddingPanel_RemoveSubPanel "::HIEmbeddingPanel::RemoveSubPanel"
  206. #define HIEmbeddingPanel_RemoveSubPanel(somSelf,ev,subPanel) \
  207.     (SOM_Resolve(somSelf, HIEmbeddingPanel, RemoveSubPanel) \
  208.     (somSelf,ev,subPanel))
  209. #ifndef SOMGD_RemoveSubPanel
  210.     #if defined _RemoveSubPanel || defined __RemoveSubPanel
  211.         #undef _RemoveSubPanel
  212.         #undef __RemoveSubPanel
  213.         #define SOMGD_RemoveSubPanel 1
  214.     #else
  215.         #define _RemoveSubPanel HIEmbeddingPanel_RemoveSubPanel
  216.     #endif /* _RemoveSubPanel */
  217. #endif /* SOMGD_RemoveSubPanel */
  218.  
  219. /*
  220.  * New Method: GetSubPanel
  221.  */
  222. typedef HIPanel*   (SOMLINK *somTD_HIEmbeddingPanel_GetSubPanel)(HIEmbeddingPanel *somSelf, Environment *ev,
  223.         HISubPanelIndex subPanelIndex);
  224. #define somMD_HIEmbeddingPanel_GetSubPanel "::HIEmbeddingPanel::GetSubPanel"
  225. #define HIEmbeddingPanel_GetSubPanel(somSelf,ev,subPanelIndex) \
  226.     (SOM_Resolve(somSelf, HIEmbeddingPanel, GetSubPanel) \
  227.     (somSelf,ev,subPanelIndex))
  228. #ifndef SOMGD_GetSubPanel
  229.     #if defined _GetSubPanel || defined __GetSubPanel
  230.         #undef _GetSubPanel
  231.         #undef __GetSubPanel
  232.         #define SOMGD_GetSubPanel 1
  233.     #else
  234.         #define _GetSubPanel HIEmbeddingPanel_GetSubPanel
  235.     #endif /* _GetSubPanel */
  236. #endif /* SOMGD_GetSubPanel */
  237.  
  238. /*
  239.  * New Method: GetUserInputFocusSubPanel
  240.  */
  241. typedef HIPanel*   (SOMLINK *somTD_HIEmbeddingPanel_GetUserInputFocusSubPanel)(HIEmbeddingPanel *somSelf, Environment *ev);
  242. #define somMD_HIEmbeddingPanel_GetUserInputFocusSubPanel "::HIEmbeddingPanel::GetUserInputFocusSubPanel"
  243. #define HIEmbeddingPanel_GetUserInputFocusSubPanel(somSelf,ev) \
  244.     (SOM_Resolve(somSelf, HIEmbeddingPanel, GetUserInputFocusSubPanel) \
  245.     (somSelf,ev))
  246. #ifndef SOMGD_GetUserInputFocusSubPanel
  247.     #if defined _GetUserInputFocusSubPanel || defined __GetUserInputFocusSubPanel
  248.         #undef _GetUserInputFocusSubPanel
  249.         #undef __GetUserInputFocusSubPanel
  250.         #define SOMGD_GetUserInputFocusSubPanel 1
  251.     #else
  252.         #define _GetUserInputFocusSubPanel HIEmbeddingPanel_GetUserInputFocusSubPanel
  253.     #endif /* _GetUserInputFocusSubPanel */
  254. #endif /* SOMGD_GetUserInputFocusSubPanel */
  255.  
  256. /*
  257.  * New Method: SetUserInputFocusSubPanel
  258.  */
  259. typedef OSStatus   (SOMLINK *somTD_HIEmbeddingPanel_SetUserInputFocusSubPanel)(HIEmbeddingPanel *somSelf, Environment *ev,
  260.         HIPanel* subPanel);
  261. #define somMD_HIEmbeddingPanel_SetUserInputFocusSubPanel "::HIEmbeddingPanel::SetUserInputFocusSubPanel"
  262. #define HIEmbeddingPanel_SetUserInputFocusSubPanel(somSelf,ev,subPanel) \
  263.     (SOM_Resolve(somSelf, HIEmbeddingPanel, SetUserInputFocusSubPanel) \
  264.     (somSelf,ev,subPanel))
  265. #ifndef SOMGD_SetUserInputFocusSubPanel
  266.     #if defined _SetUserInputFocusSubPanel || defined __SetUserInputFocusSubPanel
  267.         #undef _SetUserInputFocusSubPanel
  268.         #undef __SetUserInputFocusSubPanel
  269.         #define SOMGD_SetUserInputFocusSubPanel 1
  270.     #else
  271.         #define _SetUserInputFocusSubPanel HIEmbeddingPanel_SetUserInputFocusSubPanel
  272.     #endif /* _SetUserInputFocusSubPanel */
  273. #endif /* SOMGD_SetUserInputFocusSubPanel */
  274.  
  275. /*
  276.  * New Method: GetSubPanelIndex
  277.  */
  278. typedef HISubPanelIndex   (SOMLINK *somTD_HIEmbeddingPanel_GetSubPanelIndex)(HIEmbeddingPanel *somSelf, Environment *ev,
  279.         HIPanel* subPanel);
  280. #define somMD_HIEmbeddingPanel_GetSubPanelIndex "::HIEmbeddingPanel::GetSubPanelIndex"
  281. #define HIEmbeddingPanel_GetSubPanelIndex(somSelf,ev,subPanel) \
  282.     (SOM_Resolve(somSelf, HIEmbeddingPanel, GetSubPanelIndex) \
  283.     (somSelf,ev,subPanel))
  284. #ifndef SOMGD_GetSubPanelIndex
  285.     #if defined _GetSubPanelIndex || defined __GetSubPanelIndex
  286.         #undef _GetSubPanelIndex
  287.         #undef __GetSubPanelIndex
  288.         #define SOMGD_GetSubPanelIndex 1
  289.     #else
  290.         #define _GetSubPanelIndex HIEmbeddingPanel_GetSubPanelIndex
  291.     #endif /* _GetSubPanelIndex */
  292. #endif /* SOMGD_GetSubPanelIndex */
  293.  
  294. /*
  295.  * New Method: GetSubPanelsFromRefLabel
  296.  */
  297. typedef OSStatus   (SOMLINK *somTD_HIEmbeddingPanel_GetSubPanelsFromRefLabel)(HIEmbeddingPanel *somSelf, Environment *ev,
  298.         RefLabel* identifier,
  299.         boolean deep,
  300.         ItemCount requestedSubPanels,
  301.         ItemCount* totalSubPanels,
  302.         HIPanel** thePanels);
  303. #define somMD_HIEmbeddingPanel_GetSubPanelsFromRefLabel "::HIEmbeddingPanel::GetSubPanelsFromRefLabel"
  304. #define HIEmbeddingPanel_GetSubPanelsFromRefLabel(somSelf,ev,identifier,deep,requestedSubPanels,totalSubPanels,thePanels) \
  305.     (SOM_Resolve(somSelf, HIEmbeddingPanel, GetSubPanelsFromRefLabel) \
  306.     (somSelf,ev,identifier,deep,requestedSubPanels,totalSubPanels,thePanels))
  307. #ifndef SOMGD_GetSubPanelsFromRefLabel
  308.     #if defined _GetSubPanelsFromRefLabel || defined __GetSubPanelsFromRefLabel
  309.         #undef _GetSubPanelsFromRefLabel
  310.         #undef __GetSubPanelsFromRefLabel
  311.         #define SOMGD_GetSubPanelsFromRefLabel 1
  312.     #else
  313.         #define _GetSubPanelsFromRefLabel HIEmbeddingPanel_GetSubPanelsFromRefLabel
  314.     #endif /* _GetSubPanelsFromRefLabel */
  315. #endif /* SOMGD_GetSubPanelsFromRefLabel */
  316. #ifndef SOM_DONT_USE_INHERITED_MACROS
  317. #define HIEmbeddingPanel_GetEmbeddingParent HIPanel_GetEmbeddingParent
  318. #define HIEmbeddingPanel_InitPanel HIPanel_InitPanel
  319. #define HIEmbeddingPanel_RegisterInterestInAppleEvent HIPanel_RegisterInterestInAppleEvent
  320. #define HIEmbeddingPanel_HasValidContent HIPanel_HasValidContent
  321. #define HIEmbeddingPanel_GetDeepCollectionItemData HIPanel_GetDeepCollectionItemData
  322. #define HIEmbeddingPanel_GetWindow HIObject_GetWindow
  323. #define HIEmbeddingPanel_GetPort HIObject_GetPort
  324. #define HIEmbeddingPanel_GetRefLabel HIObject_GetRefLabel
  325. #define HIEmbeddingPanel_GetCollection HIObject_GetCollection
  326. #define HIEmbeddingPanel_Init HIObject_Init
  327. #define HIEmbeddingPanel_Terminate HIObject_Terminate
  328. #define HIEmbeddingPanel_Clone HIObject_Clone
  329. #define HIEmbeddingPanel_Release HIObject_Release
  330. #define HIEmbeddingPanel_GetOwnerCount HIObject_GetOwnerCount
  331. #define HIEmbeddingPanel_InitFromAERecord HIObject_InitFromAERecord
  332. #define HIEmbeddingPanel_WriteToAERecord HIObject_WriteToAERecord
  333. #define HIEmbeddingPanel_CalculateOptimalSize HIObject_CalculateOptimalSize
  334. #define HIEmbeddingPanel_GetBoundingRect HIObject_GetBoundingRect
  335. #define HIEmbeddingPanel_SetBoundingRect HIObject_SetBoundingRect
  336. #define HIEmbeddingPanel_SetPosition HIObject_SetPosition
  337. #define HIEmbeddingPanel_SetSize HIObject_SetSize
  338. #define HIEmbeddingPanel_GetUpdateRect HIObject_GetUpdateRect
  339. #define HIEmbeddingPanel_Enable HIObject_Enable
  340. #define HIEmbeddingPanel_Disable HIObject_Disable
  341. #define HIEmbeddingPanel_IsEnabled HIObject_IsEnabled
  342. #define HIEmbeddingPanel_Show HIObject_Show
  343. #define HIEmbeddingPanel_Hide HIObject_Hide
  344. #define HIEmbeddingPanel_IsVisible HIObject_IsVisible
  345. #define HIEmbeddingPanel_HandleAppleEvent HIObject_HandleAppleEvent
  346. #define HIEmbeddingPanel_HandleActivate HIObject_HandleActivate
  347. #define HIEmbeddingPanel_HandleDeactivate HIObject_HandleDeactivate
  348. #define HIEmbeddingPanel_HandleNavigation HIObject_HandleNavigation
  349. #define HIEmbeddingPanel_HandleMouseDownInContent HIObject_HandleMouseDownInContent
  350. #define HIEmbeddingPanel_HandleMouseMovedInContent HIObject_HandleMouseMovedInContent
  351. #define HIEmbeddingPanel_HandleMouseStoppedMovingInContent HIObject_HandleMouseStoppedMovingInContent
  352. #define HIEmbeddingPanel_HandleMouseUpInContent HIObject_HandleMouseUpInContent
  353. #define HIEmbeddingPanel_TakeUserInputFocus HIObject_TakeUserInputFocus
  354. #define HIEmbeddingPanel_ReleaseUserInputFocus HIObject_ReleaseUserInputFocus
  355. #define HIEmbeddingPanel_HasUserInputFocus HIObject_HasUserInputFocus
  356. #define HIEmbeddingPanel_CanReleaseUserInputFocus HIObject_CanReleaseUserInputFocus
  357. #define HIEmbeddingPanel_SetUserInputFocusFlags HIObject_SetUserInputFocusFlags
  358. #define HIEmbeddingPanel_GetUserInputFocusFlags HIObject_GetUserInputFocusFlags
  359. #define HIEmbeddingPanel_SetTitle HIObject_SetTitle
  360. #define HIEmbeddingPanel_GetTitle HIObject_GetTitle
  361. #define HIEmbeddingPanel_Draw HIObject_Draw
  362. #define HIEmbeddingPanel_Erase HIObject_Erase
  363. #define HIEmbeddingPanel_Invalidate HIObject_Invalidate
  364. #define HIEmbeddingPanel_GetDrawingMode HIObject_GetDrawingMode
  365. #define HIEmbeddingPanel_SetDrawingMode HIObject_SetDrawingMode
  366. #define HIEmbeddingPanel_SetBackgroundPattern HIObject_SetBackgroundPattern
  367. #define HIEmbeddingPanel_GetBackgroundPattern HIObject_GetBackgroundPattern
  368. #define HIEmbeddingPanel_Cut HIObject_Cut
  369. #define HIEmbeddingPanel_Copy HIObject_Copy
  370. #define HIEmbeddingPanel_Paste HIObject_Paste
  371. #define HIEmbeddingPanel_Clear HIObject_Clear
  372. #define HIEmbeddingPanel_GetClipboardSupportFlags HIObject_GetClipboardSupportFlags
  373. #define HIEmbeddingPanel_AddStateChangeCallback HIObject_AddStateChangeCallback
  374. #define HIEmbeddingPanel_RemoveStateChangeCallback HIObject_RemoveStateChangeCallback
  375. #define HIEmbeddingPanel_GetHIObjectFromRefLabel HIObject_GetHIObjectFromRefLabel
  376. #define HIEmbeddingPanel_GetNewHIObject HIObject_GetNewHIObject
  377. #define HIEmbeddingPanel_GetNewHIObjectFromResource HIObject_GetNewHIObjectFromResource
  378. #define HIEmbeddingPanel_DrawContent HIObject_DrawContent
  379. #define HIEmbeddingPanel_EraseContent HIObject_EraseContent
  380. #define HIEmbeddingPanel_TranslatePoint HIObject_TranslatePoint
  381. #define HIEmbeddingPanel_TranslateRect HIObject_TranslateRect
  382. #define HIEmbeddingPanel_StateChanged HIObject_StateChanged
  383. #define HIEmbeddingPanel_SetClipboardSupportFlags HIObject_SetClipboardSupportFlags
  384. #define HIEmbeddingPanel_Verify HIObject_Verify
  385. #define HIEmbeddingPanel_somInit SOMObject_somInit
  386. #define HIEmbeddingPanel_somUninit SOMObject_somUninit
  387. #define HIEmbeddingPanel_somDuplicateReference SOMObject_somDuplicateReference
  388. #define HIEmbeddingPanel_somCompareReference SOMObject_somCompareReference
  389. #define HIEmbeddingPanel_somRelease SOMObject_somRelease
  390. #define HIEmbeddingPanel_somFree SOMObject_somFree
  391. #define HIEmbeddingPanel_somCanDelete SOMObject_somCanDelete
  392. #define HIEmbeddingPanel_somGetClass SOMObject_somGetClass
  393. #define HIEmbeddingPanel_somGetClassName SOMObject_somGetClassName
  394. #define HIEmbeddingPanel_somGetSize SOMObject_somGetSize
  395. #define HIEmbeddingPanel_somIsA SOMObject_somIsA
  396. #define HIEmbeddingPanel_somRespondsTo SOMObject_somRespondsTo
  397. #define HIEmbeddingPanel_somIsInstanceOf SOMObject_somIsInstanceOf
  398. #define HIEmbeddingPanel_somDispatch SOMObject_somDispatch
  399. #define HIEmbeddingPanel_somClassDispatch SOMObject_somClassDispatch
  400. #define HIEmbeddingPanel_somCastObj SOMObject_somCastObj
  401. #define HIEmbeddingPanel_somResetObj SOMObject_somResetObj
  402. #define HIEmbeddingPanel_somPrintSelf SOMObject_somPrintSelf
  403. #define HIEmbeddingPanel_somDumpSelf SOMObject_somDumpSelf
  404. #define HIEmbeddingPanel_somDumpSelfInt SOMObject_somDumpSelfInt
  405. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  406.  
  407. #endif       /* SOM_HIEmbeddingPanel_h */
  408.  
  409. #ifndef SOM_HIRootPanel_h
  410. #define SOM_HIRootPanel_h
  411.  
  412.  
  413. #include <som.h>
  414.  
  415. /*
  416.  * -- This emitter treats Method Tokens as Thunks by default.
  417.  * -- Use the sc modifier "nothunks" to change this default
  418.  */
  419. #undef somresolve_
  420. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  421.  
  422. /*
  423.  * Define the class name as an object type
  424.  */
  425. #ifndef HIRootPanel
  426. #define HIRootPanel SOMObject
  427. #endif
  428. #include <HIEmbeddingPanels.h>
  429.  
  430. /*
  431.  * Start of user-defined types:
  432.  */
  433.  
  434. /*
  435.  * End of user-defined types.
  436.  */
  437.  
  438. #define HIRootPanel_MajorVersion 0
  439. #define HIRootPanel_MinorVersion 0
  440.  
  441. /*
  442.  * External name shortening if required
  443.  */
  444. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  445. #define HIRootPanelClassData d
  446. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  447. /*--------------Migration------------*/
  448.  
  449. #ifdef OLDIBMSOMAPISUPPORT
  450. #define HIRootPanel_classObj somNewClassReference(HIRootPanel)
  451. #define _HIRootPanel HIRootPanel_classObj
  452. #define HIRootPanelCClassData HIRootPanelClassData
  453. #define HIRootPanelNewClass(major,minor) somNewVersionedClassReference(HIRootPanel,major,minor)
  454. #endif
  455.  
  456. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  457. #define HIRootPanelMetaClass SOMClass
  458.  
  459. #if PRAGMA_ALIGN_SUPPORTED
  460. #  pragma options align=power
  461. #endif
  462.  
  463. /*
  464.  * Declare the class data structure
  465.  */
  466. SOMEXTERN struct HIRootPanelClassDataStructure {
  467. #ifdef OLDIBMSOMAPISUPPORT
  468.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  469. #else
  470.     long zero;
  471. #endif
  472.     somStaticClassInfo *sci;
  473.     somDToken        instanceDataToken;
  474.     long reserved [3];
  475.     somMToken InitRootPanel;
  476.     somMToken AdjustAccumulatedEraseRgn;
  477.     somMToken EraseAccumulatedEraseRgn;
  478. } SOMDLINK HIRootPanelClassData;
  479.  
  480. #if PRAGMA_ALIGN_SUPPORTED
  481. #  pragma options align=reset
  482. #endif
  483.  
  484. #if !defined(HIRootPanel_Class_Source) && !defined(SOM_Module_hiembeddingpanels_Source)
  485. #if PRAGMA_IMPORT_SUPPORTED
  486. #pragma import list HIRootPanelClassData
  487. #endif
  488. #endif
  489.  
  490.  
  491. /*
  492.  * New macro for HIRootPanel
  493.  */
  494. #define HIRootPanelNew() somNewObject(HIRootPanel)
  495.  
  496. /*
  497.  * New Method: InitRootPanel
  498.  */
  499. typedef OSStatus   (SOMLINK *somTD_HIRootPanel_InitRootPanel)(HIRootPanel *somSelf, Environment *ev,
  500.         RefLabel* identifier,
  501.         HIWindow* window);
  502. #define somMD_HIRootPanel_InitRootPanel "::HIRootPanel::InitRootPanel"
  503. #define HIRootPanel_InitRootPanel(somSelf,ev,identifier,window) \
  504.     (SOM_Resolve(somSelf, HIRootPanel, InitRootPanel) \
  505.     (somSelf,ev,identifier,window))
  506. #ifndef SOMGD_InitRootPanel
  507.     #if defined _InitRootPanel || defined __InitRootPanel
  508.         #undef _InitRootPanel
  509.         #undef __InitRootPanel
  510.         #define SOMGD_InitRootPanel 1
  511.     #else
  512.         #define _InitRootPanel HIRootPanel_InitRootPanel
  513.     #endif /* _InitRootPanel */
  514. #endif /* SOMGD_InitRootPanel */
  515.  
  516. /*
  517.  * New Method: AdjustAccumulatedEraseRgn
  518.  */
  519. typedef void   (SOMLINK *somTD_HIRootPanel_AdjustAccumulatedEraseRgn)(HIRootPanel *somSelf, Environment *ev,
  520.         HIAccumulatorOperation accumulatorOperation,
  521.         Rect* oldRectangle,
  522.         Rect* newRectangle);
  523. #define somMD_HIRootPanel_AdjustAccumulatedEraseRgn "::HIRootPanel::AdjustAccumulatedEraseRgn"
  524. #define HIRootPanel_AdjustAccumulatedEraseRgn(somSelf,ev,accumulatorOperation,oldRectangle,newRectangle) \
  525.     (SOM_Resolve(somSelf, HIRootPanel, AdjustAccumulatedEraseRgn) \
  526.     (somSelf,ev,accumulatorOperation,oldRectangle,newRectangle))
  527. #ifndef SOMGD_AdjustAccumulatedEraseRgn
  528.     #if defined _AdjustAccumulatedEraseRgn || defined __AdjustAccumulatedEraseRgn
  529.         #undef _AdjustAccumulatedEraseRgn
  530.         #undef __AdjustAccumulatedEraseRgn
  531.         #define SOMGD_AdjustAccumulatedEraseRgn 1
  532.     #else
  533.         #define _AdjustAccumulatedEraseRgn HIRootPanel_AdjustAccumulatedEraseRgn
  534.     #endif /* _AdjustAccumulatedEraseRgn */
  535. #endif /* SOMGD_AdjustAccumulatedEraseRgn */
  536.  
  537. /*
  538.  * New Method: EraseAccumulatedEraseRgn
  539.  */
  540. typedef void   (SOMLINK *somTD_HIRootPanel_EraseAccumulatedEraseRgn)(HIRootPanel *somSelf, Environment *ev,
  541.         CGrafPtr targetPort);
  542. #define somMD_HIRootPanel_EraseAccumulatedEraseRgn "::HIRootPanel::EraseAccumulatedEraseRgn"
  543. #define HIRootPanel_EraseAccumulatedEraseRgn(somSelf,ev,targetPort) \
  544.     (SOM_Resolve(somSelf, HIRootPanel, EraseAccumulatedEraseRgn) \
  545.     (somSelf,ev,targetPort))
  546. #ifndef SOMGD_EraseAccumulatedEraseRgn
  547.     #if defined _EraseAccumulatedEraseRgn || defined __EraseAccumulatedEraseRgn
  548.         #undef _EraseAccumulatedEraseRgn
  549.         #undef __EraseAccumulatedEraseRgn
  550.         #define SOMGD_EraseAccumulatedEraseRgn 1
  551.     #else
  552.         #define _EraseAccumulatedEraseRgn HIRootPanel_EraseAccumulatedEraseRgn
  553.     #endif /* _EraseAccumulatedEraseRgn */
  554. #endif /* SOMGD_EraseAccumulatedEraseRgn */
  555. #ifndef SOM_DONT_USE_INHERITED_MACROS
  556. #define HIRootPanel_GetSubPanelCount HIEmbeddingPanel_GetSubPanelCount
  557. #define HIRootPanel_GetLastSelectedSubPanel HIEmbeddingPanel_GetLastSelectedSubPanel
  558. #define HIRootPanel_InitEmbeddingPanel HIEmbeddingPanel_InitEmbeddingPanel
  559. #define HIRootPanel_AddSubPanel HIEmbeddingPanel_AddSubPanel
  560. #define HIRootPanel_RemoveSubPanel HIEmbeddingPanel_RemoveSubPanel
  561. #define HIRootPanel_GetSubPanel HIEmbeddingPanel_GetSubPanel
  562. #define HIRootPanel_GetUserInputFocusSubPanel HIEmbeddingPanel_GetUserInputFocusSubPanel
  563. #define HIRootPanel_SetUserInputFocusSubPanel HIEmbeddingPanel_SetUserInputFocusSubPanel
  564. #define HIRootPanel_GetSubPanelIndex HIEmbeddingPanel_GetSubPanelIndex
  565. #define HIRootPanel_GetSubPanelsFromRefLabel HIEmbeddingPanel_GetSubPanelsFromRefLabel
  566. #define HIRootPanel_GetEmbeddingParent HIPanel_GetEmbeddingParent
  567. #define HIRootPanel_InitPanel HIPanel_InitPanel
  568. #define HIRootPanel_RegisterInterestInAppleEvent HIPanel_RegisterInterestInAppleEvent
  569. #define HIRootPanel_HasValidContent HIPanel_HasValidContent
  570. #define HIRootPanel_GetDeepCollectionItemData HIPanel_GetDeepCollectionItemData
  571. #define HIRootPanel_GetWindow HIObject_GetWindow
  572. #define HIRootPanel_GetPort HIObject_GetPort
  573. #define HIRootPanel_GetRefLabel HIObject_GetRefLabel
  574. #define HIRootPanel_GetCollection HIObject_GetCollection
  575. #define HIRootPanel_Init HIObject_Init
  576. #define HIRootPanel_Terminate HIObject_Terminate
  577. #define HIRootPanel_Clone HIObject_Clone
  578. #define HIRootPanel_Release HIObject_Release
  579. #define HIRootPanel_GetOwnerCount HIObject_GetOwnerCount
  580. #define HIRootPanel_InitFromAERecord HIObject_InitFromAERecord
  581. #define HIRootPanel_WriteToAERecord HIObject_WriteToAERecord
  582. #define HIRootPanel_CalculateOptimalSize HIObject_CalculateOptimalSize
  583. #define HIRootPanel_GetBoundingRect HIObject_GetBoundingRect
  584. #define HIRootPanel_SetBoundingRect HIObject_SetBoundingRect
  585. #define HIRootPanel_SetPosition HIObject_SetPosition
  586. #define HIRootPanel_SetSize HIObject_SetSize
  587. #define HIRootPanel_GetUpdateRect HIObject_GetUpdateRect
  588. #define HIRootPanel_Enable HIObject_Enable
  589. #define HIRootPanel_Disable HIObject_Disable
  590. #define HIRootPanel_IsEnabled HIObject_IsEnabled
  591. #define HIRootPanel_Show HIObject_Show
  592. #define HIRootPanel_Hide HIObject_Hide
  593. #define HIRootPanel_IsVisible HIObject_IsVisible
  594. #define HIRootPanel_HandleAppleEvent HIObject_HandleAppleEvent
  595. #define HIRootPanel_HandleActivate HIObject_HandleActivate
  596. #define HIRootPanel_HandleDeactivate HIObject_HandleDeactivate
  597. #define HIRootPanel_HandleNavigation HIObject_HandleNavigation
  598. #define HIRootPanel_HandleMouseDownInContent HIObject_HandleMouseDownInContent
  599. #define HIRootPanel_HandleMouseMovedInContent HIObject_HandleMouseMovedInContent
  600. #define HIRootPanel_HandleMouseStoppedMovingInContent HIObject_HandleMouseStoppedMovingInContent
  601. #define HIRootPanel_HandleMouseUpInContent HIObject_HandleMouseUpInContent
  602. #define HIRootPanel_TakeUserInputFocus HIObject_TakeUserInputFocus
  603. #define HIRootPanel_ReleaseUserInputFocus HIObject_ReleaseUserInputFocus
  604. #define HIRootPanel_HasUserInputFocus HIObject_HasUserInputFocus
  605. #define HIRootPanel_CanReleaseUserInputFocus HIObject_CanReleaseUserInputFocus
  606. #define HIRootPanel_SetUserInputFocusFlags HIObject_SetUserInputFocusFlags
  607. #define HIRootPanel_GetUserInputFocusFlags HIObject_GetUserInputFocusFlags
  608. #define HIRootPanel_SetTitle HIObject_SetTitle
  609. #define HIRootPanel_GetTitle HIObject_GetTitle
  610. #define HIRootPanel_Draw HIObject_Draw
  611. #define HIRootPanel_Erase HIObject_Erase
  612. #define HIRootPanel_Invalidate HIObject_Invalidate
  613. #define HIRootPanel_GetDrawingMode HIObject_GetDrawingMode
  614. #define HIRootPanel_SetDrawingMode HIObject_SetDrawingMode
  615. #define HIRootPanel_SetBackgroundPattern HIObject_SetBackgroundPattern
  616. #define HIRootPanel_GetBackgroundPattern HIObject_GetBackgroundPattern
  617. #define HIRootPanel_Cut HIObject_Cut
  618. #define HIRootPanel_Copy HIObject_Copy
  619. #define HIRootPanel_Paste HIObject_Paste
  620. #define HIRootPanel_Clear HIObject_Clear
  621. #define HIRootPanel_GetClipboardSupportFlags HIObject_GetClipboardSupportFlags
  622. #define HIRootPanel_AddStateChangeCallback HIObject_AddStateChangeCallback
  623. #define HIRootPanel_RemoveStateChangeCallback HIObject_RemoveStateChangeCallback
  624. #define HIRootPanel_GetHIObjectFromRefLabel HIObject_GetHIObjectFromRefLabel
  625. #define HIRootPanel_GetNewHIObject HIObject_GetNewHIObject
  626. #define HIRootPanel_GetNewHIObjectFromResource HIObject_GetNewHIObjectFromResource
  627. #define HIRootPanel_DrawContent HIObject_DrawContent
  628. #define HIRootPanel_EraseContent HIObject_EraseContent
  629. #define HIRootPanel_TranslatePoint HIObject_TranslatePoint
  630. #define HIRootPanel_TranslateRect HIObject_TranslateRect
  631. #define HIRootPanel_StateChanged HIObject_StateChanged
  632. #define HIRootPanel_SetClipboardSupportFlags HIObject_SetClipboardSupportFlags
  633. #define HIRootPanel_Verify HIObject_Verify
  634. #define HIRootPanel_somInit SOMObject_somInit
  635. #define HIRootPanel_somUninit SOMObject_somUninit
  636. #define HIRootPanel_somDuplicateReference SOMObject_somDuplicateReference
  637. #define HIRootPanel_somCompareReference SOMObject_somCompareReference
  638. #define HIRootPanel_somRelease SOMObject_somRelease
  639. #define HIRootPanel_somFree SOMObject_somFree
  640. #define HIRootPanel_somCanDelete SOMObject_somCanDelete
  641. #define HIRootPanel_somGetClass SOMObject_somGetClass
  642. #define HIRootPanel_somGetClassName SOMObject_somGetClassName
  643. #define HIRootPanel_somGetSize SOMObject_somGetSize
  644. #define HIRootPanel_somIsA SOMObject_somIsA
  645. #define HIRootPanel_somRespondsTo SOMObject_somRespondsTo
  646. #define HIRootPanel_somIsInstanceOf SOMObject_somIsInstanceOf
  647. #define HIRootPanel_somDispatch SOMObject_somDispatch
  648. #define HIRootPanel_somClassDispatch SOMObject_somClassDispatch
  649. #define HIRootPanel_somCastObj SOMObject_somCastObj
  650. #define HIRootPanel_somResetObj SOMObject_somResetObj
  651. #define HIRootPanel_somPrintSelf SOMObject_somPrintSelf
  652. #define HIRootPanel_somDumpSelf SOMObject_somDumpSelf
  653. #define HIRootPanel_somDumpSelfInt SOMObject_somDumpSelfInt
  654. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  655.  
  656. #endif       /* SOM_HIRootPanel_h */
  657.